//
//  UnviersalTool.h
//  Universal tool
//
//  Created by Fuhao on 16/4/7.
//  Copyright © 2016年 Fuhao. All rights reserved.
//
//各类常用的方法以及功能
typedef enum recttype{
    RectTypeLeftUp,
    RectTypeLeftDown,
    RectTypeRightUp,
    RectTypeRightDown
}RectType;

#import <Foundation/Foundation.h>
#import <UIKIT/Uikit.h>

@interface UnviersalTool : NSObject <UIAlertViewDelegate>

/// 图片部分圆角
+(UIImage *)imageRectSection:(RectType)type image:(UIImage *)image;

+(void)setLabelSpace:(UILabel*)label withValue:(NSString*)str withFont:(UIFont*)font  withLineSpacing:(CGFloat)lineSpace;
+(void)AboutsetLabelSpace:(UILabel*)label withValue:(NSString*)str withFont:(UIFont*)font  withLineSpacing:(CGFloat)lineSpace;
+(CGFloat)getSpaceLabelHeight:(NSString*)str withFont:(UIFont*)font withWidth:(CGFloat)width withLineSpacing:(CGFloat)lineSpace;
 
@end
